/*
 * @Description:
 * @Author: 胡涛
 * @Date: 2023-06-06 10:53:03
 * @LastEditors: 胡涛
 * @LastEditTime: 2024-07-29 22:36:43
 */

import { useInterceptors } from "@/api";
import { App } from "vue";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/reset.css";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import "dayjs/locale/zh-cn";
import ui from "./ui";
import charts from "./charts";
import directive from "./directive";
export default {
  install(app: App) {
    useInterceptors();
    dayjs.locale("zh");
    dayjs.extend(relativeTime);
    app.use(directive);
    app.use(Antd);
    app.use(ui);
    app.use(charts);
  },
};
